package rush.rushcampus.service;

import rush.rushcampus.dto.CommmentDto;
import rush.rushcampus.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import rush.rushcampus.dto.CommentPageDto;
import rush.rushcampus.vo.ArticleCommentVo;
import rush.rushcampus.vo.CommentVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rush
 * @since 2024-06-11
 */
public interface ICommentService extends IService<Comment> {

    Long countComment(Long id , Integer type);

    void addComment(CommmentDto commmentDto);

    List<CommentVo> listComment(CommentPageDto commentPageDto);


//    List<ArticleCommentVo> listComment(Long parentId, Integer isPrivate, Integer pageNum, Integer pageSize);


    void removeComment(Long articleId);

    List<ArticleCommentVo> listArticleComment(Long articleId , Integer commentBelongs);
}
